package com.starhub.api.docwriting.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.starhub.api.docwriting.dto.WritingRecordDTO;
import com.starhub.api.docwriting.entity.WritingRecord;
import com.starhub.api.docwriting.result.WritingRecordDealResult;
import com.starhub.api.docwriting.result.WritingRecordListResult;
import com.starhub.api.docwriting.vo.WritingRecordVO;

/**   
 * 写作记录管理服务层
 * @version: V1.0
 * @author: liuhf
 * @time 2025-05-18
 */
public interface WritingRecordService extends IService<WritingRecord> {

    Page<WritingRecordVO> getWritingRecordsByUserId(Integer pageNum, Integer pageSize);
    
    WritingRecordDealResult getWritingRecordById(Long id);
    
    WritingRecordDealResult createWritingRecord(WritingRecordDTO dto);
    
    WritingRecordDealResult updateWritingRecord(WritingRecordDTO dto);
    
    WritingRecordDealResult deleteWritingRecord(Long id);

    WritingRecordDealResult addToArchive(Long id);
} 